// @ts-nocheck
import { createApp,createSSRApp } from 'vue';
import createRouter from './router';
import createStore from './store';
import App from './App.vue';

export default function(){
    const router = createRouter();
    const store = createStore();
    const isSSR = typeof window === "undefined";
    const app = (isSSR?createSSRApp:createApp)(App);
    app.use(router).use(store);
    return {
        app,
        router,
        store
    }
}